import instence from "@/utils/axios";

export const getCommentApi = (id: string) =>
  instence.get<IComment[]>(`comment/${id}`);

export const addCommentApi = (data: {
  postId: number;
  content: string;
  parentId?: number;
}) => instence.post("comment", data);
